#pragma once
#include <SDL/SDL_ttf.h>
#include <SDL/SDL.h>
#include <Vector2.h>

class Static
{
private:
public:
    static inline TTF_Font *default_font = nullptr;
    static inline bool init()
    {
        if (SDL_Init(SDL_INIT_EVERYTHING))
            return false;
        if (TTF_Init())
            return false;
        default_font = TTF_OpenFont("C:\\Windows\\fonts\\msyh.ttc", 24);
        if (default_font == nullptr)
            return false;
        return true;
    }
    static inline void quit()
    {
        TTF_CloseFont(default_font);
        TTF_Quit();
        SDL_Quit();
    }
    static inline int playerID = 0;
    static inline int golds[12] = {0};
    static inline int iron[12] = {0};
    static inline bool showAABB = false;
    static inline bool showCollision = false;
    static inline bool showQuadTree = false;
    static inline bool showFacing = false;
    static inline bool showTopOrder = false;
    static inline bool showMesh = false;
    static inline bool showNavmesh = false;
    static inline int fps = 60;
    static inline Vector2 mapSize;
};